<admintpl file="header" />
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
<link type="text/css" href="__PUBLIC__/js/select2/select2.min.css" rel="stylesheet" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('SupervisionExecutiveRules/index')}">监理实施细则管理</a></li>
            <if condition="$level eq '0' or $level eq '3' "><li><a href="{:U('SupervisionExecutiveRules/add')}">新增监理实施细则</a></li></if>
            <li class="active"><a href="{:U('SupervisionExecutiveRules/edit')}">查看监理实施细则</a></li>
        </ul>
        <form method="post" class="form-horizontal js-ajax-form form-inline tg" action="{:U('SupervisionExecutiveRules/edit_post')}">
            <section class="tab-pane active fade in" id="access">
                <div class="row">
                    <div class="col-xs-12 col-md-12 col-lg-12">
                        <div class="panel panel-info">
                            <div class="panel-body">
                                <div class="row tg-header">
                                    <div class="col-md-12 text-center">
                                        <h3>监理实施细则</h3>
                                        <hr />
                                    </div>
                                    <div class="col-md-12">
                                        <p class="tg-to"><b>工程名称:</b><input type="text" class="input-xt input-deptname" value="{$job_name}" readonly/></p>
                                        <p class="pull-right tg-serialnum"><b>编号:</b><input class="input-xt" name="code" value="{$result.code}" readonly/></p>
                                    </div>
                                </div>
                                <div class="well">
                                    <p class="indent20">
                                        <textarea style="width: 90%; height: 300px" name="content">{$result.content}</textarea>
                                    </p>

                                    <div class="signature">
                                        <p>项目监理机构(盖章)</p>
                                        <p>总监理工程师(签字)</p>

                                    </div>
                                    <p class="signature-date">
                                        <span>{$result.publish_time|substr=0,4}&nbsp;年&nbsp;{$result.publish_time|substr=5,2}月&nbsp;{$result.publish_time|substr=8,2}日</span>
                                    </p>

                                    <p>
                                        <label>抄送:</label>
                                        <select name="carbon_copy_department" id="carbon_copy_department" style="width:60%;" read class="select2" multiple="multiple" data-placeholder="选择抄送单位">
                                            <foreach name="data" item="vo">
                                                <option value="{$vo.id}">{$vo.department_name}</option>
                                            </foreach>
                                        </select>
                                    </p>
                                </div>
                                <p class="text-muted tg-note">
                                    <small>注：本表一式三份，项目监理机构、建设单位、施工单位各一份。</small>
                                </p>
                                <div class="form-actions">
                                    <a class="btn btn-default" href="{:U('SupervisionExecutiveRules/index')}">{:L('BACK')}</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </form>
    </div>
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/common.js"></script>
    <script src="__PUBLIC__/js/select2/select2.min.js"></script>
    <script src="__PUBLIC__/js/select2/i18n/zh-cn.js"></script>
    <script src="__PUBLIC__/js/select2/select2.default.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#main_delivery_department").select2().val({$dept1}).trigger('change');
            $("#carbon_copy_department").select2().val({$dept2}).trigger('change');
            $(".select2").prop("disabled", true);
        });
    </script>
</body>
</html>